
import NessusCommunicator
'''
NC = NessusCommunicator('localhost', 8834, 'bob', 'bob')
NC.bindToNessusServer()
print 'NC.policyDict:'
print NC.policyDict()

NC2 = NessusCommunicator('localhost', 8834, 'bob', 'bob')
NC2.bindToNessusServer()
print 'policyDict:'
print NC2.policyDict()



print 'Concurrent Prints'
print NC.policyDict
print NC2.policyDict
NC.logOff()
NC2.logOff()

'''
NC = NessusCommunicator.NessusCommunicator('localhost',8834,'bob','bob')
NC.bindToNessusServer()
print NC.getPolicyDict()
print 'reportList:'
print NC.reportList()
print 'Report Readable name to its UUID "name"'
print NC.reportReadableName_2_UUID_Map()
print 'Getting policy human readable list'
print NC.getPolicyList()
NC.logOff()
#The line below prints the returned xml that would normally go to the parser.
print NC.reportDownload('461c743c-38af-53cf-0cbc-8b0c37ef068392081de7c3f7f60d')